package com.xingda.packing.minitor.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xingda.packing.common.R;
import com.xingda.packing.common.dto.PageDto;
import com.xingda.packing.minitor.entity.PkRuntime;
import com.xingda.packing.minitor.service.IPkRuntimeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/runtime")
public class PkRunTimeController {
    @Resource
    private IPkRuntimeService iPkRuntimeService;

    @GetMapping("/getPage")
    public R getPage(PageDto dto) {
        Page<PkRuntime> pkRuntimePage = iPkRuntimeService.getRunTime(dto);
        return R.ok().put("data", pkRuntimePage);
    }
}
